﻿@model ManageReportVer1.Models.Role

@{
    ViewBag.Title = "UpdateRole";
    Layout = "~/Views/Shared/_LayoutSecurityGuard.cshtml";
}

<h2>UpdateRole</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Role</legend>

        @Html.HiddenFor(model => model.RoleId)

        <div class="row">
            @Html.LabelFor(model => model.RoleName)
        </div>
        <div class="row">
            @Html.EditorFor(model => model.RoleName)
            @Html.ValidationMessageFor(model => model.RoleName)
        </div>

        <div class="row">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="row">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div class="backToView">
    @Html.ActionLink("Quay lại danh sách phân quyền", "ViewRole")
</div>

